package com.share.bean.site;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * <p>Title：网站首页导航条</p>
 * <p>Description：PO</p>
 * @Author：杨浩泉
 * @Date：2010-4-3
 */
@Entity
@Table(name="share_siteNavi")
public class SiteNavi {
	
	private int id ;
	
	/**导航条名称*/
	private String siteNaviName ;
	
	/**导航条URL*/
	private String siteNaviUrl ;
	
	/**导航条描述*/
	private String siteNaviDesc ;
	
	/**导航条排序*/
	private int sort ;
	
	/**是否加热*/
	private int isHot ;
	
	/**是否隐藏*/
	private int isHide ;
	
	private Date addDate ;
	
	private SiteNaviItem siteNaviItem ;

	@ManyToOne
	@JoinColumn(name="sni_id")
	public SiteNaviItem getSiteNaviItem() {
		return siteNaviItem;
	}

	public void setSiteNaviItem(SiteNaviItem siteNaviItem) {
		this.siteNaviItem = siteNaviItem;
	}

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSiteNaviName() {
		return siteNaviName;
	}

	public void setSiteNaviName(String siteNaviName) {
		this.siteNaviName = siteNaviName;
	}

	public String getSiteNaviUrl() {
		return siteNaviUrl;
	}

	public void setSiteNaviUrl(String siteNaviUrl) {
		this.siteNaviUrl = siteNaviUrl;
	}

	public String getSiteNaviDesc() {
		return siteNaviDesc;
	}

	public void setSiteNaviDesc(String siteNaviDesc) {
		this.siteNaviDesc = siteNaviDesc;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public int getIsHot() {
		return isHot;
	}

	public void setIsHot(int isHot) {
		this.isHot = isHot;
	}

	public int getIsHide() {
		return isHide;
	}

	public void setIsHide(int isHide) {
		this.isHide = isHide;
	}

	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}

}
